package CfengMiddleWare.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户每次提现时的金额记录表
 * </p>
 *
 * @author cfeng
 * @since 2022-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserAccountRecord extends Model<UserAccountRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账户表主键id
     */
    private Integer accountId;

    /**
     * 提现成功时记录的金额
     */
    private BigDecimal money;

    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
